package com.rfid.project.model;

import javax.persistence.*;

import biz.core.IdEntity;

import java.util.Date;

@Entity
public class ProjectMember extends IdEntity {

	// 人员
	@ManyToOne
	@JoinColumn(name = "PersonID")
	private People person;

	// 项目
	@ManyToOne
	@JoinColumn(name = "ProjectID")
	private Project project;

	// 预计消耗工时
	private Float predictConsumeWorktime;

	// 实际消耗工时
	private Float actualConsumeWorktime;

	// 计划介入项目日期
	private Date planEnterDate;

	// 计划退出项目日期
	private Date planExitDate;

	// 项目职责
	private String duty;

	// 工时系数
	private Double worktimeRate;

	// 项目成员类型
	@ManyToOne
	@JoinColumn(name = "ProjectMemberTypeID")
	private ProjectMemberType projectMemberType;

	// 创建时间
	private Date createTime;

	// 创建人
	@ManyToOne
	@JoinColumn(name = "CreatePersonID")
	private People createPerson;

	// 备注
	private String remark;

	public People getPerson() {
		return person;
	}

	public void setPerson(People person) {
		this.person = person;
	}

	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

	public Date getPlanEnterDate() {
		return planEnterDate;
	}

	public void setPlanEnterDate(Date planEnterDate) {
		this.planEnterDate = planEnterDate;
	}

	public Date getPlanExitDate() {
		return planExitDate;
	}

	public void setPlanExitDate(Date planExitDate) {
		this.planExitDate = planExitDate;
	}

	public String getDuty() {
		return duty;
	}

	public void setDuty(String duty) {
		this.duty = duty;
	}

	public Double getWorktimeRate() {
		return worktimeRate;
	}

	public void setWorktimeRate(Double worktimeRate) {
		this.worktimeRate = worktimeRate;
	}

	public ProjectMemberType getProjectMemberType() {
		return projectMemberType;
	}

	public void setProjectMemberType(ProjectMemberType projectMemberType) {
		this.projectMemberType = projectMemberType;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public People getCreatePerson() {
		return createPerson;
	}

	public void setCreatePerson(People createPerson) {
		this.createPerson = createPerson;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Float getPredictConsumeWorktime() {
		return predictConsumeWorktime;
	}

	public void setPredictConsumeWorktime(Float predictConsumeWorktime) {
		this.predictConsumeWorktime = predictConsumeWorktime;
	}

	public Float getActualConsumeWorktime() {
		return actualConsumeWorktime;
	}

	public void setActualConsumeWorktime(Float actualConsumeWorktime) {
		this.actualConsumeWorktime = actualConsumeWorktime;
	}

}
